package com.hmall.controller;

import com.hdmall.business.common.common.ServerResponse;
import com.hmall.service.PdfService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("pdf/")
@Api(value = "生成PDF操作API", description = "生成PDF操作说明")
public class PdfController {
    @Autowired
    private PdfService pdfService;
    /**
     * 获取用户历史信息
     * @return
     */
    @GetMapping("showProductPlanPdf")
    @ApiOperation(value="显示月度计划PDF")
    public ServerResponse<String> showProductPlanPdf(String planStr){

        return  pdfService.showProductPlanPdf(planStr);
    }


}
